package com.ayf.payment.game.api.utils;

import org.apache.commons.codec.digest.DigestUtils;

import java.util.UUID;

public abstract class TokenUtils {

    public static String genAccessToken() {
        return DigestUtils.sha256Hex(UUID.randomUUID().toString());
    }

    public static String genRefreshToken(String accessToken) {
        return DigestUtils.sha256Hex(accessToken);
    }

}
